package com.asiainfo.wx.api.apibase.bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * Copyright: Copyright (c) 2019  zteits
 *
 * @ClassName: com.asiainfo.wx.api.apibase.bean
 * @Description:服务请求基类
 * @version: v1.0.0
 * @author: atao
 * @date: 2019-10-29   16:59
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2019-10-29      atao          v1.0.0          创建
 */
public class BaseReq implements Serializable {

    /**
     * 请求ID 用于追踪请求
     */
    private String reqId;

    /**
     * 上一个请求的ID 用于追踪请求
     */
    private String preReqId;

    public BaseReq() {
        this.reqId = UUID.randomUUID().toString();
    }

    public BaseReq(String preReqId) {
        this.preReqId = preReqId;
    }

    public String getReqId() {
        return reqId;
    }

    public void setPreReqId(String preReqId) {
        this.preReqId = preReqId;
    }
}
